<template>
    <div class="app">
      <h1>多页面共同部分--default</h1>
      <div class="page-component__scroll" ref="pageScrollView" style="height: calc(100vh - 80px); overflow-y: scroll; z-index: 1;">
        <nuxt :isScroll="isScroll"></nuxt>
      </div>
    </div>
</template>
<script>
  export default {
    name: "defaultPage",
    components: {},
  props: {

  },
  data() {
    return {
      currRoute: '',
      isScroll: false,
      socket: '',
      notificationsList: [],
      messageList: [],
      unread_notification_summary: [],
      routes_head_not: [
        "user-login-bg",
        "pay-error",
        "pay-success",
      ],
      
      routes_head_bg_transparent: [
        "index",
        "jobs",
        "talents",
        "user-info-my",
        "user-info-account",
        "user-info-personal",
      ],
      routes_head_bg_gray: [
        "user-login",
        "user-register"
      ],
      userInfo: null,
      username: '',
    };
  },
}
</script>
<style lang="less" scoped>
  .app{
    position: relative;
    width: 100%;

    .page-scroll-top-btn {
      position: fixed;
      cursor: pointer;
      right: 36px;
      bottom: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 96px;
      height: 96px;
      background: #ffffff;
      border-radius: 6px;
      box-shadow: 0px 3px 8px rgb(0 0 0 / 51%);
      .home-top__icon {
        width: 50px;
        height: 50px;
      }
    }
  }
  .page-heard{
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #d5d5d5;
    position: relative;
    transition: all 0.5s;
    .app-logo{
      margin: 0 50px;
      width: 173px;
      height: 24px;
      cursor: pointer;
      transition: all 0.5s;
      filter: brightness(0.2);
    }
    .app-nav{
      display: flex;
      align-items: center;
      flex: 1;
      transition: 0.5s;
      .nuxt-link{
        box-sizing: border-box;
        font-size: 18px;
        margin: 0 30px;
        height: 80px;
        line-height: 80px;
        display: block;
        transition: all 0.3s;
        color: #333333;
        border-bottom: 0px solid #ff6625;
        &.nuxt-link-exact-active{
          color: #ff6625;
          border-bottom: 4px solid #ff6625;
        }
      }
    }
    .app-user{
      display: flex;
      align-items: center;
      margin-right: 50px;

      .user-info{
        display: flex;
        align-items: center;
        margin-left: 20px;
        cursor: pointer;
        .el-dropdown-link{
          display: flex;
          align-items: center;
        }
        .user-avatar-circle{
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 24px;
          border: 3px solid rgba(255, 255, 255, 1);
        }
        .user-nickname{
          color: #444444;
          margin: 0 16px;
          font-weight: bold;
          transition: all 0.3s;
        }
        .user-set-expand{
          transition: all 0.3s;
          filter: brightness(1);
        }
        .head-btn{
          margin: 0 15px 0 0px;
          width: 140px;
          height: 38px;
          line-height: 34px;
          color: #ffffff;
          text-align: center;
          border-radius: 50px;
          border: 2px solid #ff6625;
          background-color: #ff6625;
          &.login{
            background-color: rgba(255, 98, 37, .2);
            color: #ff6625;
          }
        }
      }
      .head-notice, .head-message{
        cursor: pointer;
        margin: 0 10px;
        height: 36px;
        width: 36px;
        filter: brightness(1);
        transition: all 0.3s;
      }
      .head-notice{
        height: 24px;
        width: 24px;
      }
      .notice-badge, .message-badge{
        width: 15px;
        height: 15px;
        position: absolute;
        background-color: #ff4c00;
        border-radius: 50%;
        border: 2px solid #ffffff;
        display: block;
        right: 6px;
        top: -6px;
      }
      .message-badge{
        right: 10px;
        top: 0px;
      }
    }
    &.bg-transparent{
      background-color: transparent;
      .app-nav{
        .nuxt-link{
          color: #ffffff;
          border-bottom: 0px solid #ffffff;
          &.nuxt-link-exact-active{
            color: #ffffff;
            border-bottom: 4px solid #ffffff;
          }
        }
      }
      .app-logo{
        filter: brightness(1);
      }
      .app-user{
        .user-nickname{
          color: #ffffff;
        }
        .user-set-expand{
          filter: brightness(2);
        }
        .head-notice, .head-message{
          filter: brightness(6);
        }
        .user-avatar.default{
          filter: brightness(1);
        }
      }
    }
    &.bg-gray{
      background-color: #e5e5e5;
    }
  }

</style>